package ip.dto;

import java.io.Serializable;

/***********************************************************************
 * Module:  Orders.java
 * Author:  mojsilo
 * Purpose: Defines the Class Orders
 ***********************************************************************/


public class OrderDTO implements Serializable
{
	private static final long serialVersionUID = 724608733284497175L;
	private long orderId;
	private java.util.Date orderDate;
	private java.lang.String creditCardNumber;
	private float totalPrice;
	
	/**
	 * @return the creditCardNumber
	 */
	public java.lang.String getCreditCardNumber() {
		return creditCardNumber;
	}
	/**
	 * @param creditCardNumber the creditCardNumber to set
	 */
	public void setCreditCardNumber(java.lang.String creditCardNumber) {
		this.creditCardNumber = creditCardNumber;
	}
	/**
	 * @return the orderDate
	 */
	public java.util.Date getOrderDate() {
		return orderDate;
	}
	/**
	 * @param orderDate the orderDate to set
	 */
	public void setOrderDate(java.util.Date orderDate) {
		this.orderDate = orderDate;
	}
	/**
	 * @return the orderId
	 */
	public long getOrderId() {
		return orderId;
	}
	/**
	 * @param orderId the orderId to set
	 */
	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}
	/**
	 * @return the totalPrice
	 */
	public float getTotalPrice() {
		return totalPrice;
	}
	/**
	 * @param totalPrice the totalPrice to set
	 */
	public void setTotalPrice(float totalPrice) {
		this.totalPrice = totalPrice;
	}
	
	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "Orders ( "
	        + super.toString() + TAB
	        + "orderId = " + this.orderId + TAB
	        + "orderDate = " + this.orderDate + TAB
	        + "creditCardNumber = " + this.creditCardNumber + TAB
	        + "totalPrice = " + this.totalPrice + TAB
	        + " )";
	
	    return retValue;
	}

	
}